package net.brucecooper.mindmap.client;

import java.util.EventObject;

@SuppressWarnings("serial")
public class NodeDataStoreEvent extends EventObject {

	private int node;
	private int childNode;

	public NodeDataStoreEvent(NodeDataStore store, int node) {
		super(store);
		this.node = node;
		this.childNode = -1;
	}

	public NodeDataStoreEvent(NodeDataStore store, int parentNode, int childNode) {
		super(store);
		this.node = parentNode;
		this.childNode = childNode;
	}

	public int getNode() {
		return node;
	}

	public int getChildNode() {
		return childNode;
	}


}
